#define _CRT_SECURE_NO_WARNINGS  1
#include<stdio.h>

int main()
{
	int n;
	for (n = 100; n <= 200; n++)
	{
		int j; int a = 1;
		for(j=2;j<n-1;j++)
			if (n % j == 0)
			{
				a = 0;
				break;
			}
		if (a == 1)
			printf("%d ", n);
	}
	return 0;
}